<?php


namespace app\api\controller\v1;


use app\utils\redis\RedisCache;
use Firebase\JWT\JWT;
use think\App;

class Test
{
    public function test($id = 0) {
//        return App::VERSION;
        $hostName = gethostname();
        $host = gethostbyname($hostName);
        return successJson($_SERVER);
    }

    public function phpInfo() {
        $info = phpinfo();
//        return successJson($info, "PHP_INFO");
        return phpinfo();
    }

    public function redisTest() {
//        $redis = RedisCache::rFindInSet("test", '');
//        return successJson($redis, "Redis测试");
    }
}